package com.webside.wap.common.example;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 该Bean用于容纳有关评论部分的参数
 * 作为一个模型Bean使用（尽量避免用持久化Bean作为参数容器）
 * @author XuanZhen XYH
 *
 */
public class CommentExample {
	/*
	 * 评论id
	 */
	private Integer id;
	/*
	 * 所属视频id
	 */
	private Integer videoId;
	/*
	 * 评论（2）|赞（1）：评论需要content 赞不需要content
	 */
	private String type;
	/*
	 * 该评论所属父评论id
	 */
	private Integer parentId;
	/*
	 * 评论用户id
	 */
	private Integer userId;
	/*
	 * 评论内容
	 */
	private String content;
	/*
	 * 创建评论时间
	 */
	private Date createTime;
	/*
	 * 评论状态（是否标记删除）
	 */
	private String status;
	/*
	 * 子回复数
	 */
	private Integer childrenCount;
	/*
	 * 起始条数
	 */
	private Integer beginPage;

	/*
	 * 每页条数
	 */
	private Integer pageSize;
	
	/*
	 * 排序依据
	 */
	private String sort;
	
	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public int getBeginPage() {
		return beginPage;
	}

	public void setBeginPage(Integer beginPage) {
		this.beginPage = beginPage;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getVideoId() {
		return videoId;
	}

	public void setVideoId(Integer videoId) {
		this.videoId = videoId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreateTime() {
		return createTime ;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Integer getChildrenCount() {
		return childrenCount;
	}

	public void setChildrenCount(Integer childrenCount) {
		this.childrenCount = childrenCount;
	}

	@Override
	public String toString() {
		return "CommentExample [id=" + id + ", videoId=" + videoId + ", type=" + type + ", parentId=" + parentId
				+ ", userId=" + userId + ", content=" + content + ", createTime=" + createTime + ", status=" + status
				+ ", childrenCount=" + childrenCount + ", beginPage=" + beginPage + ", pageSize=" + pageSize + ", sort="
				+ sort + "]";
	}
	
	

}
